﻿package game.objects {
	import game.alternativa.Model;
	
	public class AutoUtilObject {
		
		public function AutoUtilObject():void {
			
		}
		
		
		public function setSpoiler(id:int, model:Model):void {
			switch (id) {
				case 1:
					model.z = 30;
					model.x = -70;
				break;
			}
			
		}
		
		public function setWheels(id:int, model1:Model, model2:Model, model3:Model, model4:Model):void {
			switch (id) {
				case 1:
					model1.rotationX = -Math.PI;
					model1.x = 47;
					model1.y = 33;
					model1.z = 6;
					model2.x = 47;
					model2.y = -33;
					model2.z = 6;
					model3.rotationX = -Math.PI;
					model3.x = -45;
					model3.y = 33;
					model3.z = 6;
					model4.x = -45;
					model4.y = -33;
					model4.z = 6;
				break;
			}
			
		}
	}
	
}